package com.sumainfor.zuul.service.impl.Feign;

import com.sumainfor.zuul.dao.Feign.FeignUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 * 用户
 * @Auther: zhlu
 * @Date: 2019/3/17 16:27
 * @Description:
 */
@Service
public class FeignUserService {

    @Autowired
    FeignUserMapper FeignUserMapper;

    /**
     * 功能描述: 
     * 根据用户编号获取用户资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/17 16:28
     */    
    public Map<String,Object>getUserMap(Map<String,Object>params){
        Map<String,Object>getUserMap=FeignUserMapper.getUserMap(params);
        return getUserMap;
    }

    /**
     * 功能描述: 
     * 获取所有用户的编号和名称
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/4/18 17:17
     */
    public List<Map<String,Object>>getAllUserIdAndName(){
        return FeignUserMapper.getAllUserIdAndName();
    }

    public Map<String,Object> getArea(Map<String,Object> params){
        return FeignUserMapper.getArea(params);
    }

}
